<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Auth\Events\Registered;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $user = User::create([
            'account' => '676659348@qq.com',
            'email' => '676659348@qq.com',
            'password' => bcrypt('12345Abc'),
            'email_verified_at' => now(),
            'remember_token' => Str::random(),
        ]);

        event(new Registered($user));
    }
}
